package com.demo8;

public class DemoException {
    public static void main(String[] args) throws Exception {
        for (int i = 0; i < 10; i++) {
            if (i == 5) {
                try {
                    int c = 10 / 0;
                } catch (Exception ex) {
                  ex.printStackTrace();
                }
            }
            System.out.println(i);
        }
    }
}
